package Service.impl;

import dao.IOrderStatusDao;
import dao.impl.OrderStatusDaoImpl;
import pojo.OrderStatus;

import java.util.List;

/**
 * @author Mazai_
 * @version 1.0
 * @date 2021/5/28 8:31
 */
public class OrderStatusServiceImpl implements IOrderStatusDao {
    IOrderStatusDao orderStatausDao = new OrderStatusDaoImpl();

    @Override
    public void addMyOrderStatus(OrderStatus orderStatus) {
        orderStatausDao.addMyOrderStatus(orderStatus);
    }

    @Override
    public void updateMyOrderStatus(OrderStatus orderStatus) {
        orderStatausDao.updateMyOrderStatus(orderStatus);
    }

    @Override
    public void deleteMyOrderStatus(int id) {
        orderStatausDao.deleteMyOrderStatus(id);
    }

    @Override
    public OrderStatus findOrderStatusById(int id) {
        return orderStatausDao.findOrderStatusById(id);
    }

    @Override
    public List<OrderStatus> findAllOrderStatus() {
        return orderStatausDao.findAllOrderStatus();
    }
}
